﻿using System.Windows.Controls;
using DALHelper.Business;

namespace ResortManager.Wizard
{
    /// <summary>
    /// Interaction logic for DefaultResults.xaml
    /// </summary>
    public partial class COResults : UserControl, IProceedureComponent
    {
        public COResults()
        {
            InitializeComponent();
        }

        #region IProceedureComponent Members

        public string KeyText
        {
            get { return "Kết thúc"; }
        }

        public bool RequestNext()
        {
            return true;
        }

        public void UpdateComponent()
        {
            string s = " VND";
            CheckOutData coData = ParentWizard.WizardCommonData as CheckOutData;
            if (coData != null)
            {
                s = coData.TotalMoney + s;
            }
            lblTotalCost.Content = s;
        }

        public ProceedureDialog ParentWizard
        {
            get;
            set;
        }

        #endregion
    }
}
